import request from "./request";

// 轮播图列表
export const getBanner = () => {
  return request({
    url: "/banner",
  });
};

// 推荐歌单
export const getRecommendlist = () => {
  return request({
    url: "/personalized",
    method: "get",
    params: {
      limit,
    },
  });
};

// 获取最新音乐
export const getNewsong = () => {
  return request({
    url: "/personalized/newsong",
    method: "get",
  });
};

// 获取推荐mv
export const getMv = () => {
  return request({
    url: "/personalized/mv",
    method: "get",
  });
};

// 获取音乐的url
export const getSongUrl = ({ id }) => {
  return request({
    url: "/song/url",
    method: "get",
    params: {
      id,
    },
  });
};
